package kr.hkit.powerjava.chapter5.work;

import java.util.Scanner;

public class progarmming2 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		int a;
		int b;
		
		System.out.println("정수를 입력하시오.");
		a = input.nextInt();
		System.out.println("정수를 입력하시오.");
		b = input.nextInt();
		
		System.out.println(b + "를 " + a + "으로 나눈 몫은 " + b/a + "이고 나머지는 " + b%a + "입니다");
		
	}

}
